import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';


import {AppComponent} from './app.component';

const routerRoutes: Routes = [
  {path: '', redirectTo: '/design', pathMatch: 'full'},
  {path: 'design', loadChildren: './design/design.module#DesignModule'},
  {path: 'front', loadChildren: './front/front.module#FrontModule'},
  {path: '**', redirectTo: ''}
];


@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    RouterModule.forRoot(routerRoutes)
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {
}
